package com.ym.medical.dao;

import com.ym.medical.domain.entity.LabelsEntity;
import com.ym.medical.domain.param.LabelsParam;
import com.ym.medical.domain.vo.LabelsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 标签表Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface LabelsDao extends Mapper<LabelsEntity> {

	/***
	 * 标签查询
	 * @param doctId
	 * @return
	 */
	List<LabelsEntity> selectJobTitle(Long doctId);

	List<LabelsEntity> selectDoctorId(Long doctorId);

	int delectDoctorLabel(@Param("labId") Long labId, @Param("doctId") Long doctId);

	int insertDoctorLabel(@Param("id") Long id, @Param("doctorId") Long doctorId);

	List<LabelsEntity> selectGoodLabelDoctorId(Long doctorId);

	/**
	 * 擅长标签展示
	 *
	 * @param model
	 * @return
	 */
	List<LabelsVo> listLabels(LabelsParam model);

	/**
	 * 科室标签查询
	 *
	 * @param deptName
	 * @param diseaseName
	 * @return
	 */
	List<LabelsVo> selectByModelCustomer(@Param("deptName") String deptName, @Param("diseaseName") String diseaseName);
}
